<template>
  <div class="m-slide">
    <el-carousel height="240px">
      <el-carousel-item
        v-for="item in imgList"
        :key="item.img">
        <a :href="item.url">
          <img :src="item.img">
        </a>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: "slider",
  data() {
    return {
      imgList: [
        {
          url: '#',
          img: 'http://p0.meituan.net/codeman/daa73310c9e57454dc97f0146640fd9f69772.jpg'
        },
        {
          url: '#',
          img: 'http://p1.meituan.net/codeman/826a5ed09dab49af658c34624d75491861404.jpg'
        },
        {
          url: '#',
          img: 'https://p1.meituan.net/travelcube/01d2ab1efac6e2b7adcfcdf57b8cb5481085686.png'
        }
      ]
    }
  }
}
</script>

<style scoped>

</style>
